package cn.logo.entities;

import java.io.Serializable;
import java.util.Date;

/**
 * @param 地址id addressId
 * @param 用户id userId
 * @param 收件人 name
 * @param 省  addressProvince
 * @param 市  addressCity
 * @param 县  addressArea
 * @param 地址名  addressName
 * @param 联系电话  addressPhone
 * @param 默认地址  addressDefult
 * @param 创建时间 addressCreateDay
 * @param 最后修改  addressModifyDay
 * @author leimiaosen
 *
 */
public class Address implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3325941453468524185L;
	private Integer addressId;
	private Integer userId;
	private String name;
	private Province addressProvince;
	private City addressCity;
	private Area addressArea;
	private String addressName;
	private String addressPhone;
	private Integer addressDefult;
	private Date addressCreateDay;
	private Date addressModifyDay;
	private Integer addressPostcode;
	public Address() {
		// TODO Auto-generated constructor stub
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Province getAddressProvince() {
		return addressProvince;
	}
	public void setAddressProvince(Province addressProvince) {
		this.addressProvince = addressProvince;
	}
	public City getAddressCity() {
		return addressCity;
	}

	public void setAddressCity(City addressCity) {
		this.addressCity = addressCity;
	}



	public Area getAddressArea() {
		return addressArea;
	}


	public void setAddressArea(Area addressArea) {
		this.addressArea = addressArea;
	}
	
	@Override
	public String toString() {
		return "Address [addressId=" + addressId + ", userId=" + userId + ", name=" + name + ", addressProvince="
				+ addressProvince + ", addressCity=" + addressCity + ", addressArea=" + addressArea + ", addressName="
				+ addressName + ", addressPhone=" + addressPhone + ", addressDefult=" + addressDefult
				+ ", addressCreateDay=" + addressCreateDay + ", addressModifyDay=" + addressModifyDay
				+ ", addressPostcode=" + addressPostcode + "]";
	}
	
	public Address(Integer addressId, Integer userId, String name, Province addressProvince, City addressCity,
			Area addressArea, String addressName, String addressPhone, Integer addressDefult, Date addressCreateDay,
			Date addressModifyDay, Integer addressPostcode) {
		super();
		this.addressId = addressId;
		this.userId = userId;
		this.name = name;
		this.addressProvince = addressProvince;
		this.addressCity = addressCity;
		this.addressArea = addressArea;
		this.addressName = addressName;
		this.addressPhone = addressPhone;
		this.addressDefult = addressDefult;
		this.addressCreateDay = addressCreateDay;
		this.addressModifyDay = addressModifyDay;
		this.addressPostcode = addressPostcode;
	}
	public Integer getAddressId() {
		return addressId;
	}
	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getAddressName() {
		return addressName;
	}
	public void setAddressName(String addressName) {
		this.addressName = addressName;
	}
	public String getAddressPhone() {
		return addressPhone;
	}
	public void setAddressPhone(String addressPhone) {
		this.addressPhone = addressPhone;
	}
	public Integer getAddressDefult() {
		return addressDefult;
	}
	public void setAddressDefult(Integer addressDefult) {
		this.addressDefult = addressDefult;
	}
	public Date getAddressCreateDay() {
		return addressCreateDay;
	}
	public void setAddressCreateDay(Date addressCreateDay) {
		this.addressCreateDay = addressCreateDay;
	}
	public Date getAddressModifyDay() {
		return addressModifyDay;
	}
	public void setAddressModifyDay(Date addressModifyDay) {
		this.addressModifyDay = addressModifyDay;
	}

	public Integer getAddressPostcode() {
		return addressPostcode;
	}

	public void setAddressPostcode(Integer addressPostcode) {
		this.addressPostcode = addressPostcode;
	}
	
}
